<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />
<title>首页</title>
</head>
<body>
<div class="page-container">
    <p class="f-20 text-success">欢迎使用<?php echo $config['site_name']?> <span class="f-14"><?php echo $config['site_version']?></span>后台！</p>
    <p>登录次数：<?php echo $info['login_times']?> </p>
    <p>上次登录IP：<?php echo long2ip($info['last_login_ip'])?>  上次登录时间：<?php echo date('Y-m-d H:i:s',$info['last_login_time'])?></p>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr>
            <th colspan="99" scope="col">信息统计</th>
        </tr>
        <tr class="text-c">
            <th>统计</th>
            <th>用户数</th>
            <th>商家数</th>
            <th>营业额</th>
            <th>订单数</th>
            <th>活动数</th>
            <th>商品数</th>
        </tr>
        </thead>
        <tbody>
        <tr class="text-c">
            <td>总数</td>
            <td><?php echo $info['user_count']?></td>
            <td><?php echo $info['business_count']?></td>
            <td><?php echo $info['amount_count']?></td>
            <td><?php echo $info['order_count']?></td>
            <td><?php echo $info['event_count']?></td>
            <td><?php echo $info['goods_count']?></td>
        </tr>
        <tr class="text-c">
            <td>今日</td>
            <td><?php echo $info['user_today']?></td>
            <td>0</td>
            <td><?php echo $info['amount_today']?></td>
            <td>0</td>
            <td>0</td>
            <td>0</td>
        </tr>
        <tr class="text-c">
            <td>昨日</td>
            <td><?php echo $info['user_yestoday']?></td>
            <td>0</td>
            <td><?php echo $info['amount_yestoday']?></td>
            <td>0</td>
            <td>0</td>
            <td>0</td>
        </tr>
        <tr class="text-c">
            <td>本周</td>
            <td><?php echo $info['user_week']?></td>
            <td>0</td>
            <td><?php echo $info['amount_week']?></td>
            <td>0</td>
            <td>0</td>
            <td>0</td>
        </tr>
        <tr class="text-c">
            <td>本月</td>
            <td><?php echo $info['user_month']?></td>
            <td>0</td>
            <td><?php echo $info['amount_month']?></td>
            <td>0</td>
            <td>0</td>
            <td>0</td>
        </tr>
        </tbody>
    </table>

</div>
<footer class="footer mt-20">
    <div class="container">
        <p>
            本后台系统由<a href="" target="_blank" title=""><?php echo $config['site_name']?></a>提供技术支持</p>
    </div>
</footer>
</body>
</html>